package com.example.sxy;

import cn.hutool.extra.tokenizer.Result;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;

public class HelloController {
    public TextField input;
    public Label output;


    @FXML
    protected void onHelloButtonClick() {
        String AD=input.getText();
        String Result=HttpUtil.get("https://qqlykm.cn/api/phone/phone.php?phone="+AD);
        Result = JSONUtil.toJsonPrettyStr(Result);
        output.setText(Result);

}}